﻿using System.ComponentModel;

namespace InvoicingScreen.Controls.Components
{
    /// <summary>
    /// This control provides a data item for the CommentBoxControl which implements INotifyPropertyChanged for two way binding.
    /// It stores one string, testcontent.
    /// </summary>
    public class TestString : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        private string _testcontent;
        public string testcontent 
        {
            get
            {
                return _testcontent;
            }

            set
            {
                _testcontent = value;
                OnPropertyChanged("testcontent");
            }
        
        }

        private void OnPropertyChanged(string property)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }
    }
}
